<?php
// Calendar includes
echo $javascript->link('jscalendar-1.0/calendar.js');
echo $javascript->link('jscalendar-1.0/lang/calendar-es.js');
echo $javascript->link('common.js');
// CSS Calendar Theme
echo $html->css('../js/jscalendar-1.0/skins/aqua/theme');
?>
<?php echo $html->css('default',NULL,array(),false) ?>
<?php echo $html->css('form_style',NULL,array(),false) ?>
<?php echo $javascript->link('prototype-1.6.0.3.js'); ?>
<div id="columnA">
    <h3>Editar Datos de Campa&ntilde;a</h3>
    <?php
    echo 'Los campos marcados con (*) son obligatorios.';
    echo $form->create('Revision',array('controller'=>'revisiones','action'=>'editarcabecera/'.$form->value('Revision.id')));
    echo $form->hidden('Revision.id');
    echo $form->hidden('Revision.tipo_rev');
    echo $form->hidden('Revision.productor_id');
    echo '<div class="form_row">';
    echo $form->input('Revision.tecnico_id',array('label'=> '*Encuestador: ','div'=>false,'class'=>'inputstyle input360','type'=>'select','options'=>$tecnicos));
    echo '</div>';
    echo '<div class="form_row">';
    echo $datePicker->picker('Revision.fch_revision',array('label'=>'*Fecha Campa&ntilde;a: ','div'=>false,'class'=>'inputstyle input80','id'=>'Revision.FchRevision'));
    echo $datePicker->picker('Revision.fch_relevamiento',array('label'=>' *Fecha Relevam.: ','div'=>false,'class'=>'inputstyle input80','id'=>'Revision.FchRelevamiento'));
    echo '</div>';
    echo '<div class="form_row">';
    echo $form->input('Revision.predio_id',array('label'=>'*Establecim./Campo: ','div'=>false,'class'=>'inputstyle input320','type'=>'select','options'=>$predios));
    echo '</div>';
    echo '<br />';
    echo $form->button('Cancelar',array('onclick'=>'javascript:window.location="/sistemahorticola/revisiones/ver/'.$form->value('Revision.id').'"'));
    echo $form->submit('Guardar',array('div'=>false));
    echo $form->end();
    ?>
</div>
